/**
 * 千分位格式化
 * @param {*} value
 */
export function thousandth (value) {
  if (!value) {
    return value
  }
  value = `${value}`.split('.')
  value[0] = String(value[0]).replace(/\B(?=(\d{3})+(?!\d))/g, ',')
  value = value.join('.')
  return value
}